-- GENERATED SPELL FOR [Alliance Sorceress] --


function spell0_17922(pUnit, Event) --@Arcane Missiles,n/a--
pUnit:FullCastSpellOnTarget(31743,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17922', 653, 1)
end

function spell1_17922(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(31741,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17922', 15300, 1)
end

function Sorts_17922(pUnit, Event)
local choix_sorts_17922 = math.random(0, 1)
if choix_sorts_17922 == 0 then
pUnit:RegisterEvent('spell0_17922', 1, 1)
end
if choix_sorts_17922 == 1 then
pUnit:RegisterEvent('spell1_17922', 1, 1)
end
end

function mob17922_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17922', math.random(1500, 3000), 1)
end

function mob17922_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17922_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17922_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17922, 1, 'mob17922_Action')
RegisterUnitEvent(17922, 2, 'mob17922_Leave')
RegisterUnitEvent(17922, 3, 'mob17922_Kill')
RegisterUnitEvent(17922, 4, 'mob17922_Die')
